import time

from Page01 import Page

import unittest
from ddt import ddt,file_data
from selenium import webdriver

@ddt()
class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver=webdriver.Firefox()
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(4)
        self.driver.quit()



    @file_data(r'.\user.json')
    def test_baidu_01(self,info):
        po=Page(self.driver)
        po.baidu_ceshi_01(info)



if __name__ == '__main__':
    unittest.main()